package com.huawei.zyb.taskManager;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 任务管理系统主应用类
 * 启动Spring Boot应用并配置MyBatis Mapper扫描
 * 
 * @author ZYB
 * @version 1.0.0
 */
@SpringBootApplication
@MapperScan("com.huawei.zyb.taskManager.infrastructure.persistence.mapper")
@EnableTransactionManagement
public class TaskManagerApplication {

	/**
	 * 应用程序入口点
	 * 
	 * @param args 命令行参数
	 */
	public static void main(String[] args) {
		SpringApplication.run(TaskManagerApplication.class, args);
		System.out.println("\n=== 任务管理系统启动成功 ===");
		System.out.println("应用访问地址: http://localhost:8080");
		System.out.println("H2控制台地址: http://localhost:8080/h2-console");
		System.out.println("API文档地址: http://localhost:8080/api");
		System.out.println("健康检查地址: http://localhost:8080/actuator/health");
		System.out.println("=========================\n");
	}
}
